<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 弹出两个窗口让用户输入两个值，同时将两个值保存到两个变量
    var a = +prompt(`请输入第一个值`), b = +prompt(`请输入第二个值`)
    // 判断a是否大于b
    if (a >= b) {
        // 若a>或者等于b则输出a
        alert(a)
    }
    // 否则输出b
    else alert(b)


</script>

</html>